﻿package org.nickro.project.events{
	import flash.events.Event;
	public class FileEvent extends Event{
		//文件上传成功，开始上传
		public static const START:String = "start";
		//操作错误或者限制性错误
		public static const CONSUMER_ERROR:String = "consumer_error";
		//文件选择事件
		public static const SELECTED:String = "selected";
		//上传完成事件,参数一般做为上传时候完成的标记
		public static const UPLOAD:String = "upload";
		//加载选择文件，加载过程事件
		public static const PREVIEW_PROGRESS:String = "preview_progress"
		//加载选择文件，加载完成事件,预览时，跟随此事件派发的参数为FileReference.data(BytesArray)属性
		public static const PREVIEW_COMPLETE:String = "preview_complete";
		
		public function FileEvent(type:String,fileProperties:Object = null){
			super(type,bubbles,cancelable);
			_fileProperties = fileProperties
		}
		//任意类型的参数
		private var _fileProperties:Object = {};
		public function get fileProperties():Object { return _fileProperties; };
	}
}